package org.openems;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserServiceFactory;

public class Utility {

    public static String getEmail() {
        String email;
        User user = UserServiceFactory.getUserService().getCurrentUser();
        if (user != null) {
            email = user.getEmail();
        }
        else {
            email = "annonymous";
        }
        return email;
    }

}
